package com.honeycomb.tag.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.honeycomb.common.base.service.impl.BaseServiceImpl;
import com.honeycomb.db.dao.TaginfoDao;
import com.honeycomb.tag.dto.TagInfoDto;
import com.honeycomb.tag.service.TagService;

/**
 * 文章Service实现
 * 
 * @author Wangyu
 */
@Service
public class TagServiceImpl extends BaseServiceImpl implements TagService {

	@Resource
	private TaginfoDao taginfoDao;

	@Override
	public List<TagInfoDto> getTagsByUser(String userId) {
		return taginfoDao.getTagsByUser(userId);
	}
	
	@Override
	public List<TagInfoDto> getChildrenTags(String tagId) {
		return taginfoDao.getChildrenTags(tagId);
	}
	
	@Override
	public List<TagInfoDto> getRootTags() {
		return taginfoDao.getRootTags();
	}

	@Override
	public boolean attentionTag(String userId, String tagId) {
		// TODO Auto-generated method stub
		return taginfoDao.attentionTag(userId, tagId);
	}

	@Override
	public boolean deleteFavorTag(String tagId) {
		// TODO Auto-generated method stub
		return taginfoDao.deleteFavorTag(tagId);
	}
	
}
